home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Utilities Experience
/
The Utilities Experience - Volume 1.iso
/
software
/
graphics
/
n-z
/
picscaler
/
picscaler_install.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-12-21
|
2KB
|
49 lines
/*
$VER: PicScaler_Install v1.0 (30 Jun 95)
*/
options results
cls='0C0A'x
call open(Shell,'con:0/11/640/50/ PicScaler_Install v1.0 - DFD Ltd./c')
call writeln Shell,cls||center('Where do you want to install PicScaler?',76)
if ~show('L','rexxsupport.library') then do
if addlib('rexxsupport.library',0,-30,0) then nop
else do
call writeln Shell,cls||center('LIBS:rexxsupport.library is not available.',76)
exit 10
end
end
if ~exists('LIBS:apig.library') then do
call writeln Shell,cls||center('Copying libs/apig.library to LIBS:',76)
shell command('copy >nil: libs/apig.library LIBS: clone')
end
if ~show('L','apig.library') then do
if addlib('apig.library',0,-30,0) then nop
else do
call writeln Shell,cls||center('LIBS:apig.library is not available.',76)
exit 10
end
end
if ~exists('LIBS:iff.library') then do
call writeln Shell,cls||center('Copying libs/iff.library to LIBS:',76)
shell command('copy >nil: libs/iff.library LIBS: clone')
end
call SET_APIG_GLOBALS()
freq = ALLOCFILEREQUEST()
install_path = REQUESTFILE(freq,0,0,'Where to install PicScaler',null(),null(),1,1,null(),0,22,320,177,null())
call FREEFILEREQUEST(freq)
if install_path = null() then signal Die
call writeln Shell,cls||center('Installing PicScaler',76)
shell command('copy >nil: PicScaler 'install_path' clone')
call writeln Shell,cls||center('Insalling Run_Script & Icon',76)
shell command('copy >nil: Run_PicScaler#? 'install_path' clone')
call writeln Shell,cls||center('- Install to "'install_path'" Complete -',76)
say 'PicScaler v1.0 was installed in >> 'install_path
wait 5
Die:
call close Shell
exit